@charset "UTF-8";
.LDiv_NameInput {
  position: relative;
}

.LDiv_NameInput .input {
  width: 100%;
  margin: 5px 2px;
  padding: 10px;
  background-color: transparent;
  border-radius: 10px;
  outline: none;
  color: black;
  font-size: 16px;
  border-width: 4px;
}

.LDiv_NameInput .input:valid, .LDiv_NameInput .input:focus {
  border-color: black;
}

.LDiv_NameInput .input:valid ~ .text,
.LDiv_NameInput .input:focus ~ .text {
  color: black;
  transform: translateX(10px) translateY(-7px);
  font-size: 12px;
  padding: 0 10px;
  background-color: white;
  border-left: 1px solid black;
  border-right: 1px solid black;
  letter-spacing: 4px;
}

.LDiv_NameInput .text {
  position: absolute;
  left: 5px;
  top: 8px;
  padding: 10px;
  pointer-events: none;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.65);
  transition: 0.5s;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 95vh;
  flex-direction: column;
  position: relative;
  background-image: url("../image/CH.jpg");
}

.MainHeader {
  padding: 30px;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.MainHeader div {
  font-size: 35px;
  margin: 10px;
}

.MainContainer,
.MainHeader {
  display: flex;
}

.GoodDataForm,
.Menu,
.MainHeader,
.EditDiv,
.MainTable {
  border-radius: 5px;
  box-shadow: 0 0 4px black;
  margin: 10px;
  font-size: 20px;
}

.Menu {
  margin: 0;
}

.MainTable thead {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.MainTable thead th {
  cursor: pointer;
  font-size: 30px;
}

.MainTable tbody tr td {
  border-top: 1px solid black;
  padding: 10px 30px;
  margin: 0;
}

.MainTable tbody tr:hover {
  background-color: #ddd;
}

.EditDiv {
  padding: 10px 20px;
}

.EditDiv .LDiv_NamedInput,
.EditDiv .Btn {
  padding: 5px 15px;
  margin: 5px;
}

.EditDiv .Btn {
  cursor: pointer;
  display: flex;
  justify-content: center;
  box-shadow: 0 0 2px black;
}

.EditDiv .Btn:hover {
  background-color: #ddd;
}

.EditDiv .GoodNames,
.EditDiv .LDiv_NamedInput {
  width: 100%;
  padding: 10px 0;
}

.EditDiv .GoodNames .input,
.EditDiv .LDiv_NamedInput .input {
  width: 85%;
}

.EditDiv .GoodNames {
  display: flex;
  justify-content: center;
  align-items: center;
}

.EditDiv .GoodNames .GoodDiv {
  margin: 5px;
  padding: 5px;
  border: 1px ridge black;
  border-radius: 5px;
  font-size: 15px;
  text-align: center;
  height: 100%;
  line-height: 100%;
}

.EditDiv .GoodNames .GoodDiv.active {
  font-size: 25px;
  box-shadow: 0 0 4px black;
  background-color: lightgreen;
}

.Menu {
  position: absolute;
  box-shadow: 0 0 8px black;
  background-color: white;
  width: 150px;
}

.Menu .MenuItem {
  padding: 10px 20px;
  cursor: pointer;
}

.Menu .MenuItem:hover {
  background-color: #ddd;
}

.GoodDataForm {
  width: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 在主轴上居中对齐子项目 */
  align-items: center;
  /* 在交叉轴上居中对齐子项目 */
}

.GoodDataForm .LDiv_NamedInput {
  width: 80%;
  margin-left: -20px;
  padding: 10px 0;
}

.GoodDataForm .CancelButton,
.GoodDataForm .CommittedButton {
  box-shadow: 0 0 2px green;
  text-align: center;
  background-color: lightgreen;
  cursor: pointer;
  width: 80%;
  padding: 10px 0;
}

.GoodDataForm .CancelButton:focus,
.GoodDataForm .CommittedButton:focus {
  background-color: green;
}

.GoodDataForm .CancelButton {
  margin-top: 10px;
  background-color: lightcoral;
}
